@model CooWork.Models.Department

@{
    ViewBag.Title = "Details";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Details</h2>

<fieldset>
    <legend>Department</legend>

    <div class="display-label">DepartmentName</div>
    <div class="display-field">@Model.DepartmentName</div>

    <div class="display-label">parentId</div>
    <div class="display-field">@Model.parentId</div>

    <div class="display-label">DepartmentDesc</div>
    <div class="display-field">@Model.DepartmentDesc</div>

    <div class="display-label">Leader</div>
    <div class="display-field">@Model.Leader</div>

    <div class="display-label">Department1</div>
    <div class="display-field">@(Model.Department1 == null ? "None" : Model.Department1.Count.ToString())</div>

    <div class="display-label">Department2</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Department2).ToString()</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>


